package com.santos.annotation;

import com.santos.hw.component.StudentAction;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class main {

    public static void main(String[] args)
    {
        ApplicationContext applicationContext = new FileSystemXmlApplicationContext("/src/main/resources/annotation.xml");
        UserService userService = applicationContext.getBean("userserviceid", UserService.class);
        userService.addUser();

        ((FileSystemXmlApplicationContext) applicationContext).close();
    }
}
